<?php

namespace App\Http\Requests\Admin\Panx\DeviceAccount;

use App\Http\Requests\ApiRequest;

/**
 * @property string enabled
 */
class DeviceAccountUpdateRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'enabled' => "required|int|in:0,1"
        ];
    }
}
